package com.xy.commons;

import java.util.UUID;


/**
 * Created with erp_interface. User: zhangq DateTime: 2014/4/22 14:30 To change
 * this template use File | Settings | File Templates.
 */
public class UUIDUtil {

	/**
	 * 获取UUID字符串 无连接字符串
	 * 
	 * @return
	 */
	public static String generateUuid() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}


	/**
	 * @return 生成批次编号
	 */
	public static long genBatchId() {
		return System.currentTimeMillis();
	}
 
}
